<?php 
/****
布尔教育 高端PHP培训
培  训: http://www.itbool.com
论  坛: http://www.zixue.it
****/

$con = mysqli_connect('localhost', 'root' , '' );
mysqli_query($con , 'use 170514php');
mysqli_query($con , 'set names utf8');

$sql = "insert into msg (title,content) values ('$_POST[title]' , '$_POST[content]')";
//echo $sql;exit;

//$sql = "insert into user values (6 , 'test2' , 52)";
if(mysqli_query($con , $sql)){
	echo 'ok';
}else {
	echo 'false';
}
//print_r($_POST);
?>